﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using Common;

namespace DTC
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {
            try
            {
                if (args.Length > 0 && args[0].ToLower().Contains("-c"))
                {
                    Common.CommonHelper.InitialConsole("调试");
                }

            //    Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new FrmLogin());
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                LogHelper.WriteLog(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType, ex);
            }


        }
    }
}
